home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-06 / dcon11.zip / DCCRC.DOC < prev    next >
Text File  |  1992-02-06  |  4KB  |  107 lines

  1. Program:        DCcrc
  2. Package:        Part of the DCon Utility Set
  3. Version:        1.0
  4. Date:           February 6, 1992
  5. Author:         George Spafford
  6.  
  7. Purpose:
  8.  
  9. To compare 32-bit file CRC's in a source dir and a target dir.
  10. If the CRC values differ, then perform an action.
  11.  
  12. Procedure:
  13.  
  14. Place DCcrc.EXE in a directory that is in your path.  Invoke it as
  15.  
  16.       Dcrc /S:Source /T:Target </D></C>
  17.       
  18.         /S:Source    This is the source directory.  This can NOT be a
  19.                      file specification.
  20.    
  21.         /T:Target    This is the target directory that is to be compared
  22.                      to the source.
  23.    
  24.         ACTION Tokens:
  25.  
  26.         /D           Delete the target file(s).
  27.  
  28.         /C           Copy source files to the target directory.
  29.    
  30.         no token     Run the DCRC.BAT file.  Information will be passed to
  31.                      the .BAT file as follows:
  32.    
  33.                       %1  Source Path and File
  34.                       %2  Target Path
  35.                       %3  Target Path and File Name
  36.  
  37. DCcrc performs a fast 32-bit CRC check of each file in the source and target
  38. directories.  If a CRC value in the target dir does not match the CRC value
  39. of the file in the source dir, then an action is performed.  If a file exists
  40. in the source dir but not in the target dir, the action will still be performed.
  41.  
  42. For Example:
  43.  
  44.       DCFILDAT /S:I:\QIWSLFR /T:C:\PCS /C
  45.   
  46. If the files in I:\QIWSFLR have different CRC values than the files in C:\PCS, 
  47. then they will be copied to C:\PCS.
  48.  
  49. Say you need a more complex file routine, or you have a homegrown product that
  50. you would like to use, use the DCRC.BAT file option to run your own set of
  51. routines if a logical test proves true.
  52.  
  53. Example DCRC.BAT :
  54.  
  55. If exist %3 chmod - %3     <-   If the target path + File name exists,
  56.                                 then strip the attributes from it.
  57. if exist %1 Copy %1 %2     <-   If the file exists in the source dir, copy it     
  58. if exist %3 chmod -r %3    <-   If the new target file exists, set it to
  59.                                 read-only.
  60.                             
  61.  
  62. HISTORY:
  63.  
  64.     v1.0   02/06/92
  65.     
  66.            Initial release.             
  67.  
  68. Register Me:
  69.  
  70. This package is a little different from some utility packages that are on the
  71. market today.  If you only like one or two programs, the individual programs
  72. can be registered for $5 per concurrently used copy.  The bargain (in my
  73. eyes) is that the whole package is only $20.  It is up to you whether or not
  74. you want the entire package or only specific files.  If this package, or one
  75. of the utilities aids you, you should register your copy.  For example, say you
  76. want DCMAP & DCUPDAY, then you need only send $10.  But please, if you use this
  77. software, register it.
  78.  
  79.                 Sincerely,
  80.  
  81.                 George Spafford
  82.                 3001 LakeShore Drive, #329
  83.                 St. Joseph, MI 49085
  84.  
  85.         Data:  (616) 468-5026  Queued Access BBS 14.4Kb USR Dual HST
  86.                                FIDOnet: 1:2340/0 NEC/NC Site
  87.                                Sysop:   Tim Akright
  88.                                Over 600+ MB online
  89.  
  90. NOTE:  DCcrc IS A PART OF THE DIRECTORY CONTROL PACKAGE.  THE FOLLOWING
  91.        NOTICE PERTAINS TO DCcrc AS WELL.
  92.         
  93. DIRECTORY CONTROL AND ALL OF ITS COMPONENT FILES ARE DISTRIBUTED AS IS.  
  94. THE AUTHOR (GEORGE SPAFFORD) MAKES NO WARRANTY OF ANY KIND, EXPRESSED OR 
  95. IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY OR 
  96. FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THIS SOFTWARE AND 
  97. DOCUMENTATION. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DAMAGES, 
  98. INCLUDING LOST PROFITS, LOST SAVINGS, OR ANY OTHER INCIDENTAL OR 
  99. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF OR THE INABILITY TO USE 
  100. THIS PROGRAM.
  101. -------------------------------------------------------------------------
  102.         
  103.  
  104.                                                                                        
  105.  
  106.  
  107.